\hypertarget{_i_r_controller_8h}{\section{C\-:/\-Users/\-Robotics\-Club/\-Desktop/hprobotics/2012-\/2013/3785/\-I\-R\-Controller.h File Reference}
\label{_i_r_controller_8h}\index{C\-:/\-Users/\-Robotics\-Club/\-Desktop/hprobotics/2012-\/2013/3785/\-I\-R\-Controller.\-h@{C\-:/\-Users/\-Robotics\-Club/\-Desktop/hprobotics/2012-\/2013/3785/\-I\-R\-Controller.\-h}}
}


Useful functions for using the I\-R beacon.  


{\ttfamily \#include \char`\"{}drivers/hitechnic-\/sensormux.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}drivers/hitechnic-\/irseeker-\/v2.\-h\char`\"{}}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{_i_r_controller_8h_affe776513b24d84b39af8ab0930fef7f}{\#define \hyperlink{_i_r_controller_8h_affe776513b24d84b39af8ab0930fef7f}{max}(a, b)~( ((a) $>$ (b)) ? (a) \-: (b) )}\label{_i_r_controller_8h_affe776513b24d84b39af8ab0930fef7f}

\begin{DoxyCompactList}\small\item\em This returns the greater of the two inputs. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
float \hyperlink{_i_r_controller_8h_a50dcacc1d48bf8697f0c6bac311db8b1}{I\-R\-Get\-A\-C\-Dir} (t\-M\-U\-X\-Sensor link)
\begin{DoxyCompactList}\small\item\em Returns a more accurate I\-R beacon location. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Useful functions for using the I\-R beacon. \hyperlink{_i_r_controller_8h}{I\-R\-Controller.\-h} contains functions useful for accurately determining the location of the I\-R beacon. 

Definition in file \hyperlink{_i_r_controller_8h_source}{I\-R\-Controller.\-h}.



\subsection{Function Documentation}
\hypertarget{_i_r_controller_8h_a50dcacc1d48bf8697f0c6bac311db8b1}{\index{I\-R\-Controller.\-h@{I\-R\-Controller.\-h}!I\-R\-Get\-A\-C\-Dir@{I\-R\-Get\-A\-C\-Dir}}
\index{I\-R\-Get\-A\-C\-Dir@{I\-R\-Get\-A\-C\-Dir}!IRController.h@{I\-R\-Controller.\-h}}
\subsubsection[{I\-R\-Get\-A\-C\-Dir}]{\setlength{\rightskip}{0pt plus 5cm}float I\-R\-Get\-A\-C\-Dir (
\begin{DoxyParamCaption}
\item[{t\-M\-U\-X\-Sensor}]{link}
\end{DoxyParamCaption}
)}}\label{_i_r_controller_8h_a50dcacc1d48bf8697f0c6bac311db8b1}


Returns a more accurate I\-R beacon location. 

I\-R\-Get\-A\-C\-Dir gets the value of the I\-R beacon with float precision, rather than integer precision.


\begin{DoxyParams}{Parameters}
{\em link} & The sensor multiplexer port location of the I\-R Seeker V2. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The direction of the I\-R beacon. 
\end{DoxyReturn}


Definition at line 25 of file I\-R\-Controller.\-h.

